﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Kcadastro.classes;

namespace Kcadastro.fuser
{
    public partial class trocarSenha : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            masterPageKcad m = Master as masterPageKcad;
            m.idFerr = 3;
            if (!seguranca.aplicSegur(3)) Response.Redirect("/na.aspx", true);
           
            if (!IsPostBack)
            {
             
            }
        }

        protected void bt_trocar_Click(object sender, EventArgs e)
        {
            int _pk = Convert.ToInt32(Session["IDuser"].ToString());
            classes.usuarios users = new classes.usuarios();
            users.IDUSER = _pk;
            users.trocarsenha(tb_senha.Text);
            users = null;
        }


    }
}